package task.manager;

import java.util.ArrayList;

/**
 * The user account class for the task manager.
 * 
 * @author Harrison Saylor, Aaron Mead, Marc Huet, Greg Ruskin
 * @version 1.0
 */
public class UserAccount {
	
	// Username/password.
	private String username;
	private String password;
	
	// ArrayList of categories.
	private CategoryList categories;
	
	/**
	 * Specified user by account name and password.
	 * 
	 * @param username User's username.
	 * @param password User's password.
	 */
	public UserAccount(String username, String password){
		this.username = username;
		this.password = password;
		categories = new CategoryList();
	} // End of UserAccount method.
	
	/**
	 * Adds a new category to the list.
	 * 
	 * @param newCat New category.
	 */
	public void addCategory(Category newCat){
		categories.add(newCat);
	} // End of addCategory method.
	
	public CategoryList getCategories(){
		return categories;
	}

} // End of UserAccount class.
